package com.xmg.design23.d11_proxy;

import java.security.acl.Permission;

/**
 * @Author: mazhongqing
 * @Date: 2021/3/24 17:22
 */
public class PersonProxy implements IPerson {
    private final Person person;
    public PersonProxy(Person person){
        this.person = person;
    }
    @Override
    public void eat() {
        person.eat();
    }

    @Override
    public void sleep() {
        person.sleep();
    }
}
